package org.dt.common.sequence.persist;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.dt.common.sequence.Sequence;

/**
 * <p>creation time: 2019/01/21 18:32</p>
 *
 * @author yujiadong
 **/
public interface TransactionSeqMapper extends BaseSeqMapper {

    @Results({
                     @Result(property = "lowerBound", column = "lower_bound"),
                     @Result(property = "upperBound", column = "upper_bound")})
    Sequence getNextSequence(String biz, long step);

    int updateMaxId(String biz, long step);
}
